package com.yunzhi.domain;

/**
 * 返回结果枚举
 * Created by haoyx on 2017/2/7.
 */
public enum ResultCode {

    SUCCESS("0000","成功","1"),
    FAILED("1111","失败","1"),
    NOT_LOGIN("0001","未登录","1"),
    NOT_REAL_NAME("0002","未实名","1"),
    NOT_CARD("0003","未绑卡","1"),
    NOT_MOBILE("0004","未绑手机","1"),
    NO_AGREEMENT("0005","不存在相应的协议，如有疑问请联系在线客服","1"),
    INVALID_SIGN("1001","无效签名","1"),
    INVALID_TOKEN("1002","无效token","1"),

    ;


    private String code;
    private String msg;
    private String type;

    ResultCode(String code, String msg, String type) {
        this.code = code;
        this.msg = msg;
        this.type = type;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
